/* g729a_pre_proc - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
package javaforce.codec.g729a;

final class g729a_pre_proc implements g729a_constants
{
    static void g729a_preproc_filter
	(float[] fs, short[] is, int i,
	 g729a_encode_filters var_g729a_encode_filters) {
	g729a_preproc_filter var_g729a_preproc_filter
	    = var_g729a_encode_filters.preproc;
	int[] is_0_ = new int[40];
	float f = var_g729a_preproc_filter.a0;
	float f_1_ = var_g729a_preproc_filter.a1;
	float f_2_ = var_g729a_preproc_filter.a2;
	float f_3_ = var_g729a_preproc_filter.b1;
	float f_4_ = var_g729a_preproc_filter.b2;
	float f_5_ = var_g729a_preproc_filter.x1;
	float f_6_ = var_g729a_preproc_filter.x2;
	float f_7_ = var_g729a_preproc_filter.y1;
	float f_8_ = var_g729a_preproc_filter.y2;
	for (int i_9_ = 0; i_9_ < 40; i_9_++) {
	    is_0_[i_9_] = is[i_9_ + i];
	    float f_10_ = (float) is_0_[i_9_];
	    float f_11_ = (f * f_10_ + f_1_ * f_5_ + f_2_ * f_6_ + f_4_ * f_8_
			   + f_3_ * f_7_);
	    f_6_ = f_5_;
	    f_5_ = f_10_;
	    f_8_ = f_7_;
	    f_7_ = f_11_;
	    fs[i_9_] = f_11_;
	}
	var_g729a_preproc_filter.x1 = f_5_;
	var_g729a_preproc_filter.x2 = f_6_;
	var_g729a_preproc_filter.y1 = f_7_;
	var_g729a_preproc_filter.y2 = f_8_;
    }
}